<template>
  <div class="error">
    <div class="error-box">
      <p class="error-icon"><i class="el-icon-error"></i></p>
      <p class="text">{{ errorMessage }}</p>
    </div>
  </div>
</template>

<script>
export default {
  data () {
    return {
      errorMessage: ''
    };
  },
  mounted () {
    this.errorMessage = sessionStorage.getItem('msg');
  }
};
</script>

<style lang="scss" scoped>
  .error {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    .error-box {
      padding: 30px;
      .error-icon {
        font-size: 56px;
        color: #F56C6C;
      }
      .text {
        color: #909399;
      }
    }
  }
</style>
